﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>无标题文档</title>
<script type="text/javascript" src="<%=request.getContextPath() %>/static/common/basic-page/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/static/common/basic-page/js/chili-1.7.pack.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/static/common/basic-page/js/jquery.easing.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/static/common/basic-page/js/jquery.dimensions.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/static/common/basic-page/js/jquery.accordion.js"></script>
<script language="javascript">
	jQuery().ready(function(){
		jQuery('#navigation').accordion({
			header: '.head',
			navigation1: true, 
			event: 'click',
			fillSpace: true,
			animated: 'bounceslide'
		});
	});
</script>
<style type="text/css">
<!--
body {
	margin:0px;
	padding:0px;
	font-size: 12px;
}
#navigation {
	margin:0px;
	padding:0px;
	width:147px;
}
#navigation a.head {
	cursor:pointer;
	background:url(<%=request.getContextPath() %>/static/common/basic-page/images/main_34.gif) no-repeat scroll;
	display:block;
	font-weight:bold;
	margin:0px;
	padding:5px 0 5px;
	text-align:center;
	font-size:12px;
	text-decoration:none;
}
#navigation ul {
	border-width:0px;
	margin:0px;
	padding:0px;
	text-indent:0px;
}
#navigation li {
	list-style:none; display:inline;
}
#navigation li li a {
	display:block;
	font-size:12px;
	text-decoration: none;
	text-align:center;
	padding:3px;
}
#navigation li li a:hover {
	background:url(<%=request.getContextPath() %>/static/common/basic-page/images/tab_bg.gif) repeat-x;
		border:solid 1px #adb9c2;
}
-->
</style>
</head>
<body>
<div  style="height:100%;">
  <ul id="navigation">
  	<c:forEach items="${mainMenuList }" var = "menuParent">
	   <li> <a class="head">${menuParent.name }</a>
		     <ul>
		      <c:forEach items="${childMenuList }" var = "menuSon">
		      	<c:if test="${menuSon.pid==menuParent.id }">
		        	<li><a href="<%=request.getContextPath()%>${menuSon.url }" target="rightFrame">${menuSon.name }</a></li>
		        </c:if>
		        </c:forEach>
		     </ul>
	    </li>
    </c:forEach>
    
    <li> <a class="head">版本信息</a>
      <ul>
        <li><a href="#"  >VESSION V1.0 by Hulu</a></li>
      </ul>
    </li>
  </ul>
 <%--  <!-- 
  		这里要使用角色新增时的判断
  
  
  -->
  <!-- 管理员从此开始查看  -->
	  <c:if test="${1 eq myinformationList.roleId} ">
		    <li> <a class="head">系统管理</a>
		      <ul>
		        <li><a href="<%=request.getContextPath() %>/role/RoleServlet?command=list" target="rightFrame">角色管理</a></li>
		        <li><a href="<%=request.getContextPath() %>/user/AllUserCommandServlet?command=splitList" target="rightFrame">用户管理</a></li>
		        <li><a href="<%=request.getContextPath() %>/yecclass/ClassServlet?command=list" target="rightFrame">班级管理</a></li>
		        <li><a href="Articles.php" target="rightFrame">课程管理</a></li>
		      </ul>
		    </li>
	   
	   <!-- 教师从此查看： -->
		<c:if test ="${2 eq  myinformationList.roleId }">    
		    <li> <a class="head">题库管理</a>
		      <ul>
		        <li><a href="" target="rightFrame">试卷管理</a></li>
		        <li><a href="Kinds.php" target="rightFrame">试题管理</a></li>
		      </ul>
		    </li>
		    <li> <a class="head">考试管理</a>
		      <ul>
		        <li><a href="messages.php" target="rightFrame">考试安排</a></li>
		        <li><a href="comments.php" target="rightFrame">成绩统计</a></li>
		      </ul>
		    </li>
	    <!-- 学生登录显示   -->
	    <c:if test="${myinformationList.roleId > 2 }">	
    		<li> <a class="head">考试安排</a>
		      <ul>
		      	
		        <li><a href="<%=request.getContextPath() %>/stu/StuUserServlet?command=list" target="rightFrame">查看待考</a></li>
		        <li><a href="comments.php" target="rightFrame">进行考试</a></li>
		        <li><a href="comments.php" target="rightFrame">成绩查询</a></li>
		      </ul>
		    </li>
    
		    <li> <a class="head">消息</a>
		      <ul>
		        <li><a href="AddLink.php" target="rightFrame">站内信息</a></li>
		        <li><a href="Links.php" target="rightFrame">公告</a></li>
		      </ul>
		    </li>
		    <li> <a class="head">版本信息</a>
		      <ul>
		        <li><a href="http://Www.865171.cn" target="_blank">by Jessica(865171.cn)</a></li>
		      </ul>
		    </li>
    		</c:if>
    	</c:if>
    </c:if>	 --%>
</div>
</body>
</html>
